<?php
require_once("../config.php");
class AdministradorModelo extends Modelo
{
	public function existeAdm($id, $pass)
	{
		$qry = "SELECT 	a.ADMI_ID, a.ADMI_NOMBRE
				FROM 	administrador a 
				WHERE 	a.ADMI_USUARIO='".$id."' AND 
						a.ADMI_PASSWORD='".$pass."'";
		$res = parent::execute($qry);
		if($res){
			if(mysql_num_rows($res)==1)
			{
				$f = mysql_fetch_array($res);
				return $f;
			}				
		}
		return null;
	}
}
	
?>